package com.ikas.autumn.iec104.common.enums;

import java.text.DecimalFormat;

/**
* @Description: GlobalConstants
* @author: dbh
* @date: 2020/01/01 16:01
*/
public class GlobalConstants {

    /**
     * 业务处理器beanName传递参数
     */
    public static final String HANDLER_NAME = "handlerName";
    /**
     * 路由刷新触发器
     */
    public static final String LODER_ROUDER_HANDLER = "loderRouderHandler";

    /**
     * redis消息通道名称
     */
    public static final String REDIS_TOPIC_NAME="digital_redis_topic";

    public static final String WEBSOCKET_MSG = "ws_msg";

    public static final String WAVE_CONF_KEY = "gw:wave:conf_key";

    /**
     * 状态
     */
    public static final String STATUS_0 = "0";
    public static final String STATUS_1 = "1";
    public static final String STATUS_2 = "2";

    /***
     *  分页当前页
     */
    public static final String PAGE = "page";

    /***
     *  分页每页显示条数
     */
    public static final String SIZE = "size";

    public static final String CHARTSET = "UTF-8";
    public static final String URL_LOGIN = "/login";
    public static final String SESSION_LOGIN = "SESSION_LOGIN";
    public static final String CONTENT_TYPE = "application/json;charset=UTF-8";

    public static final String JSON_RESULT_CODE = "code";
    public static final String JSON_RESULT_DATA = "data";
    public static final String JSON_RESULT_MSG = "msg";
    public static final String JSON_RESULT_RESULT = "result";
    public static final String JSON_RESULT_DESC = "desc";


    /**
     * redis-OK
     */
    public static final String OK = "OK";

    /**
     * Inner Server invoke Flag
     */
    String inner = "inner-invoke";

    /**
     * 文件访问路径
     */
    public static final String VIEW_FILE_URL = "/static";

    /**
     * 金额格式
     */
    public static final DecimalFormat DOUBLE_FORMAT = new DecimalFormat("#.##");

}
